//
//  SecondViewController.m
//  DemoDelegate
//
//  Created by liu ming on 11-6-20.
//  Copyright 2011 peixin. All rights reserved.
//

#import "SecondViewController.h"


@implementation SecondViewController

@synthesize value1, value2, delegate;

-(IBAction) add:(id) sender
{
	[delegate sum:[value1.text intValue] secondparam:[value2.text intValue]];
	[self dismissModalViewControllerAnimated:YES];
}

-(IBAction) multiply:(id) sender
{
	[delegate multiply:[value1.text intValue] secondvalue:[value2.text intValue]];
	[self dismissModalViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}
@end
